<template>
  <div>
    <h1>处理边界情况</h1>
    <div>
      $root.title:{{ $root.title }}
      <button @click="changeTitle">change title</button>
      <button @click="$root.console">console</button>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    changeTitle() {
      this.$root.title = "Hello Root";
    },
  },
};
</script>

<style>
</style>